<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_login
 *
 * @copyright   Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

//JHtml::_('behavior.keepalive');
//JHtml::_('bootstrap.tooltip');
?>

<?php
$doc = JFactory::getDocument();
//$doc->addScript('templates/plazart_blank/js/jquery-1.10.1.min.js');
//$doc->addScript('templates/plazart_blank/js/jquery-ui-1.10.3.custom.min.js');
//$doc->addScript('templates/plazart_blank/js/jflickrfeed.min.js');
//$doc->addScript('templates/plazart_blank/js/jquery.colorbox-min.js');
//$doc->addScript('templates/plazart_blank/js/jquery.mobilemenu.min.js');
//$doc->addScript('templates/plazart_blank/js/jquery.placeholder.min.js');
//$doc->addScript('templates/plazart_blank/js/jquery.selectbox-0.6.1.js');
//$doc->addScript('templates/plazart_blank/js/jquery.tweet.js');
//$doc->addScript('templates/plazart_blank/js/scripts.js');
//$doc->addScript('templates/plazart_blank/js/superfish.js');

?>

<div class="header-top-left container-8">
    <div class="user-links">
        <div class="login">
            <a href="#" id="login-link" class="login-link">Login</a>
            <form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post"
                  id="login-form" class="login-form" class="form-inline">
                <?php if ($params->get('pretext')): ?>
                    <div class="pretext">
                        <p><?php echo $params->get('pretext'); ?></p>
                    </div>
                <?php endif; ?>
                <div class="userdata">
                    <div id="form-login-username" class="control-group">
                        <div class="controls">
                            <div class="input-prepend input-append">
                                <input id="modlgn-username" type="text" name="username" class="text-input-grey" tabindex="1" size="18" placeholder="<?php echo JText::_('MOD_LOGIN_VALUE_USERNAME_INPUT') ?>" />
                            </div>
                        </div>
                    </div>
                    <div id="form-login-password" class="control-group">
                        <div class="controls">
                            <div class="input-prepend input-append">
                                <input id="modlgn-passwd" type="password" name="password" class="text-input-grey" tabindex="2" size="18" placeholder="<?php echo JText::_('JGLOBAL_PASSWORD') ?>" />
                            </div>
                        </div>
                    </div>
                    <div id="form-login-submit" class="control-group">
                        <div class="controls">
                            <a class="password-restore" href="/forest/index.php/component/users/?view=reset"> Forgot Password?</a>
                            <button type="submit" tabindex="3" name="Submit" class="button-2-green"><?php echo JText::_('JLOGIN') ?></button>
                            <plazart:fblogin><span id="fb-auth" class="btn"><small>fb icon</small><?php echo JText::_('TPL_TZ_LANG_FB_LOGIN_TEXT'); ?></span><plazart:fblogin>
                        </div>
                    </div>
                    <input type="hidden" name="option" value="com_users" />
                    <input type="hidden" name="task" value="user.login" />
                    <input type="hidden" name="return" value="<?php echo $return; ?>" />
                    <?php echo JHtml::_('form.token'); ?>
                </div>
                <?php if ($params->get('posttext')): ?>
                    <div class="posttext">
                        <p><?php echo $params->get('posttext'); ?></p>
                    </div>
                <?php endif; ?>
            </form>
        </div>
        <div class="register">
            <a href="#" id="register-link" class="register-link">Register</a>
            <form action="<?php echo JRoute::_('index.php?option=com_users&task=registration.register'); ?>" method="post"
                  id="register-form" class="register-form" class="form-inline">
                <?php if ($params->get('pretext')): ?>
                    <div class="pretext">
                        <p><?php echo $params->get('pretext'); ?></p>
                    </div>
                <?php endif; ?>
                <div class="userdata">

                    <div class="control-group">
                        <div class="input-prepend input-append">
                            <input type="text" name="jform[name]" id="jform_name" value="" class="text-input-grey" size="30" required="required" aria-required="true" placeholder="Name"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <div class="input-prepend input-append">
                            <input type="text" name="jform[username]" id="jform_username" value="" class="text-input-grey" size="30" required="required" aria-required="true" placeholder="Username"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <div class="input-prepend input-append">
                            <input type="password" name="jform[password1]" id="jform_password1" value="" autocomplete="off" class="text-input-grey" size="30" required="required" aria-required="true" placeholder="Password"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <div class="input-prepend input-append">
                            <input type="password" name="jform[password2]" id="jform_password2" value="" autocomplete="off" class="text-input-grey" size="30" required="required" aria-required="true" placeholder="Confirm Password"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <div class="input-prepend input-append">
                            <input type="text" name="jform[email1]" class="text-input-grey" id="jform_email1" value="" size="30" required="required" aria-required="true" placeholder="E-mail"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <div class="input-prepend input-append">
                            <input type="text" name="jform[email2]" class="text-input-grey" id="jform_email2" value="" size="30" required="required" aria-required="true" placeholder="Confirm Email"/>
                        </div>
                    </div>

                    <div id="form-login-submit" class="control-group">
                        <div class="controls">
                            <div href="#" class="fields-required" style="line-height: 15px;position: absolute;width: 100px;">All Fields Are Required</div>
                            <div><input class="button-2-green" type="submit" value="Register"></div>
                        </div>
                    </div>
<!--                    <input type="hidden" name="option" value="com_users" />-->
<!--                    <input type="hidden" name="task" value="user.login" />-->
<!--                    <input type="hidden" name="return" value="--><?php //echo $return; ?><!--" />-->
                    <?php echo JHtml::_('form.token'); ?>
                </div>
                <?php if ($params->get('posttext')): ?>
                    <div class="posttext">
                        <p><?php echo $params->get('posttext'); ?></p>
                    </div>
                <?php endif; ?>
            </form>
        </div>
    </div>
</div>

